package com.lcc.lynx.base.system.pojo;

import lombok.Data;
import com.lcc.lynx.jdbc.pojo.TablePojo;
import com.lcc.lynx.jdbc.annotation.Table;
import com.lcc.lynx.jdbc.annotation.TableId;
import com.lcc.lynx.jdbc.annotation.FieldLabel;
import com.lcc.lynx.jdbc.annotation.InsertRequired;
import java.util.List;

/** 
 * 角色管理实体
 * @auth lcc
 * @date 2025-08-01
 */
@Data
@Table("sys_role")
public class SysRole extends TablePojo {

	/** 角色id */
	@TableId
	@FieldLabel("角色id")
	private Long roleId;

	/** 角色编码 */
	@InsertRequired
	@FieldLabel("角色编码")
	private String roleCode;

	/** 角色名称 */
	@FieldLabel("角色名称")
	private String roleName;

	/** 状态 */
	@InsertRequired
	@FieldLabel("状态")
	private Short state;

	/** 备注 */
	@FieldLabel("备注")
	private String remark;

	public void setRoleIdInList(List<Long> roleIdList){ put("roleIdInList", roleIdList); }
	public void setRoleCodeLike(String roleCodeLike){ put("roleCodeLike", roleCodeLike); }
	public void setRoleCodeLikeL(String roleCodeLikeL){ put("roleCodeLikeL", roleCodeLikeL); }
	public void setRoleNameLike(String roleNameLike){ put("roleNameLike", roleNameLike); }
	public void setRoleNameLikeL(String roleNameLikeL){ put("roleNameLikeL", roleNameLikeL); }
	public void setStateInList(List<Short> stateList){ put("stateInList", stateList); }
}